package com.miracle9.game.thread;

import com.miracle9.game.util.ClientIpProcess;
import javax.annotation.PostConstruct;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

@Service("unLockBlackListIPThread")
public class UnLockBlackListIPThread
  extends Thread
{
  private Logger logger = Logger.getLogger(UnLockBlackListIPThread.class);
  
  @PostConstruct
  public void UnLockBlackListIPThreadStart()
  {
    start();
  }
  
  public void run()
  {
    try
    {
      for (;;)
      {
        this.logger.info("UnLockBlackListIPThread run");
        sleep(7200000L);
        ClientIpProcess.startMethod().clearMap();
      }
    }
    catch (Exception e)
    {
      this.logger.error("", e);
    }
  }
}
